package editor.ui
{
	import com.bit101.components.PushButton;
	import com.bit101.components.Text;
	import com.bit101.components.Window;
	
	import flash.display.DisplayObjectContainer;
	
	
	/**
	 * @author 缺硒
	 */
	public class Alert extends Window
	{
		private var _context:Text;
		private var _okBtn:PushButton;
		
		public function Alert(parent:DisplayObjectContainer=null, xpos:Number=0, ypos:Number=0, title:String="Window")
		{
			super(parent, xpos, ypos, title);
			setSize(300,200);
			_context = new Text(this);
			_okBtn = new PushButton(this);
			hide();
		}
		
		public function show(msg:String):void
		{
			_context.text = msg;
			this.visible = true;
		}
		
		public function hide():void
		{
			this.visible = false;
		}
		//
	}
}